package com.wzq.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.wzq.base.BaseMapper;
import com.wzq.base.BaseServiceImpl;
import com.wzq.bean.UserModel;
import com.wzq.dao.UserMapper;
import com.wzq.service.UserService;

/**
 * 用户管理实现类
 * @author wanziqiao
 *
 */
@Component
@Service
@Transactional
public class UserServiceImpl extends BaseServiceImpl<UserModel> implements UserService{
	@Autowired
	private UserMapper mapper;
	
	@Override
	protected BaseMapper getMapper() {
		return mapper;
	}

	@Override
	public UserModel getByAccount(String userName) {	
		return mapper.getByAccount(userName);
	}

	@Override
	public UserModel getAccountByName(String userName) {
		
		return mapper.getAccountByName(userName);
	}

}
